<?php
//session_start();
  require_once('recaptchalib.php');
  $privatekey = "6Ld8KM0SAAAAAMCQs3e961Nrcf-fdEfUjcOPCfKi";
  $resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

  if (!$resp->is_valid) {
  //if(!$resp){
    // What happens when the CAPTCHA was entered incorrectly
	//require_once('CreateNew.php');
   $_SESSION['error1']="The reCAPTCHA wasn't entered correctly. Go back and try it again."."(reCAPTCHA said: " . $resp->error . ")";
  } else {
    // Your code here to handle a successful verification
	require_once('createuser.php');
  }
  ?>